aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/app/(main)/goals/edit/[id]/page.tsx
blob: 4c02bb2879c188f5b5c8e0c08999f1625559b4ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Metadata } from "next";
import { GoalForm } from "../../components/goal-form";
import { use } from "react";

export const metadata: Metadata = {
  title: "Edit Goal | Finance",
  description: "Edit your financial goal",
};

export default function EditGoalPage({ params }: { params: { id: string } }) {
  const unwrappedParams = use(params);
  return (
    <div className="container mx-auto py-8">
      <h1 className="text-2xl font-bold tracking-tight mb-6">Edit Goal</h1>
      <GoalForm goalId={parseInt(unwrappedParams.id)} />
    </div>
  );
}